const BASE_URL="http://localhost:9525";

export const update_like =(options)=>{
	return new update_like((resolve,reject)=>{
		uni.request({
			url: BASE_URL+options.url,
			method:options.method || "GET",
			data:options.data.list || {},
			success: (res) => {
				if(res.data.status !== 0){
					return uni.showToast({
						title:"获取数据失败"
					})
				}
				resolve(res)
			},
			fail: (err) => {
				uni.showToast({
					title:"请求接口失败"
				})
				reject(err)
			}
		})
	})
}